#include "ClassWithBoolean.h"

QString COLUMN_NAME_ATTRIBUTEBOOL = "attributeBool";

QString COLUMN_TYPE_ATTRIBUTEBOOL = "bool";

ClassWithBooleanBear::ClassWithBooleanBear()
{
    m_object = new BBObject;
    m_object->setName( "ClassWithBoolean" );
    m_object->setAttributeType( COLUMN_NAME_ATTRIBUTEBOOL, COLUMN_TYPE_ATTRIBUTEBOOL );
    m_object->setAttributePrimitiveValue( COLUMN_NAME_ATTRIBUTEBOOL, NULL );
    addObject( m_object );
}

bool ClassWithBooleanBear::getAttributeBool()
{
    return m_object->getAttributePrimitiveValue( COLUMN_NAME_ATTRIBUTEBOOL ).toBool();
}

void ClassWithBooleanBear::setAttributeBool( bool value )
{
    m_object->setAttributePrimitiveValue( COLUMN_NAME_ATTRIBUTEBOOL, value );
}

